package com.demo.spring.enable.async2.test;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

	public static void main(String[] args) {
        // 用我们的配置文件来启动一个 ApplicationContext
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.demo.spring.enable.async2.test");
        System.out.println("context 启动成功");
        Student student = context.getBean(Student.class);
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
        student.say("aaa");
    }

}
